<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.springside.modules.security.springsecurity.SpringSecurityUtils" %>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>文档管理</title>
    <%@ include file="/common/meta.jsp" %>
	<link href="${ctx}/css/yui.css" type="text/css" rel="stylesheet"/>
	<link href="${ctx}/css/style.css" type="text/css" rel="stylesheet"/>
	<script src="${ctx}/js/table.js"  type="text/javascript"></script>		
	<script src="${ctx}/js/jquery.js"  type="text/javascript"></script>
    <script type="text/javascript" src="js/mootools.js"></script>
	<script type="text/javascript" src="js/calendar.rc4.js"></script>
	<script type="text/javascript">
	//<![CDATA[
		window.addEvent('domready', function() { 
			myCal1 = new Calendar({ date1: 'd/m/Y' }, { direction: 1, tweak: {x: 6, y: 0} });
			myCal2 = new Calendar({ date2: 'd/m/Y' }, { classes: ['dashboard'], direction: 1, tweak: {x: 3, y: -3} });
			myCal3 = new Calendar({ date3: 'd/m/Y' }, { classes: ['i-heart-ny'], direction: 1, tweak: {x: 3, y: 0} });
		});
	//]]>
	</script>
	<link rel="stylesheet" type="text/css" href="css/iframe.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/calendar.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/dashboard.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/i-heart-ny.css" media="screen" />
  </head>
  
  <body>
    <%@ include file="/common/header.jsp" %>
	<div class="select">
		<form action="${ctx}/document/document.action" method="post">
		<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
		<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
		<input type="hidden" name="page.order" id="order" value="${page.order}"/>
		<table>
			<tr>
				<td>文档名称</td>
				<td><input type="text" name="fileName"></td>
				<td align="right">创建者</td>
				<td><input type="text" name="userName"></td>
			</tr>
			<tr>
				<td >创建时间</td>
				<td><input type="text" name="time1" id="date2"></td>
				<td><input type="text" name="time2" id="date3"></td>
				<td><input type="submit" value="查询"></td>
			</tr>
			<tr></tr>
		</table>
		</form>
	</div>
	
	<div class="result">
		<table border="1" width="100%">
			<tr>
				<th width="100" align="center">文档名称</th>
				<th width="100" align="center">编号</th>
				<th width="100" align="center">文档类型</th>
				<th width="100" align="center">文件大小</th>
				<th width="100" align="center">所属目录</th>
				<th width="100" align="center">创建者</th>
				<th width="100" align="center">创建时间</th>
				<security:authorize ifAnyGranted="ROLE_修改主题">
				<th align="center">操作</th>
				</security:authorize>
			</tr>
			<tr>
					<td width="100" align="center">1</td>
					<td width="100" align="center">1</td>
					<td width="100" align="center">1</td>
					<td width="100" align="center">1</td>
					<td width="100" align="center">1</td>
					<td width="100" align="center">1</td>
					<td width="100" align="center">1</td>
					<td width="150" align="center">
					<input type="button" value="修改">
					<input type="button" value="删除">
					<input type="button" value="下载">
				</td>
			</tr>
		</table>
	</div>
	
	<div class="button">
		<table>
		<tr>
			<td width="100">
				<input type="file" name="fileName" size="15">							
			</td>
			<td align="right">
			    <input type="submit" value="上传">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				第${page.pageNo}页,共${page.totalPages}页&nbsp;&nbsp;
				<a href="javascript:jumpPage(1)">首页</a>
				<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
			    <s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
			    <a href="javascript:jumpPage(${page.totalPages})">末页</a>
			</td>
		</tr>
		</table>
	</div>
  <div>
 <%@ include file="/common/footer.jsp" %>
  </div>
  </body>
</html>
